package com.ytjj.qmyx.data.model.mongo;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 *
 *  *
 **/
@Document(collection="click_day_statistics")
@Data
public class ClickDayStatistics {

    private String _id;

    private String dayTime;

    private String clickName;

    private String clickType;

    private String platform;

    private String channel;

    private Integer pv;

    private Integer uv;

    private Integer newUser;

    public ClickDayStatistics() {
    }

    public ClickDayStatistics(String dayTime, String clickName, String clickType, String platform, String channel, boolean isNewUser) {
        this.dayTime = dayTime;
        this.clickName = clickName;
        this.clickType = clickType;
        this.platform = platform;
        this.channel = channel;
        this.pv = 1;
        this.uv = 1;
        this.newUser = isNewUser==true?1:0;
    }
}
